<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>ReferenceElementNode - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
		<p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → <a href="ArrayElementNode.html">ArrayElementNode</a> → </p>
	<h1 translate="no">ReferenceElementNode</h1>
		<section>
			<header>
				<div class="class-description"><p>This class is only relevant if the referenced property is array-like.
In this case, <code>ReferenceElementNode</code> allows to refer to a specific
element inside the data structure via an index.</p></div>
			</header>
			<article>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="ReferenceElementNode" translate="no">new <a href="#ReferenceElementNode">ReferenceElementNode</a><span class="signature">( referenceNode : <span class="param-type"><a href="ReferenceBaseNode.html">ReferenceBaseNode</a></span>, indexNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Constructs a new reference element node.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>referenceNode</strong>
									</td>
									<td class="description last">
										<p>The reference node.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>indexNode</strong>
									</td>
									<td class="description last">
										<p>The index node that defines the element access.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<h2 class="subsection-title">Properties</h2>
				<div class="member">
					<h3 class="name" id="isReferenceElementNode" translate="no">.<a href="#isReferenceElementNode">isReferenceElementNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
					<div class="description">
						<p>This flag can be used for type testing.</p>
						<p>Default is <code>true</code>.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="isReferenceElementNode" translate="no">.<a href="#isReferenceElementNode">isReferenceElementNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
					<div class="description">
						<p>This flag can be used for type testing.</p>
						<p>Default is <code>true</code>.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="referenceNode" translate="no">.<a href="#referenceNode">referenceNode</a><span class="type-signature"> : <a href="ReferenceBaseNode.html">ReferenceBaseNode</a></span> </h3>
					<div class="description">
						<p>Similar to <a href="ReferenceBaseNode.html#reference">ReferenceBaseNode#reference</a>, an additional
property references to the current node.</p>
						<p>Default is <code>null</code>.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="referenceNode" translate="no">.<a href="#referenceNode">referenceNode</a><span class="type-signature"> : <a href="ReferenceNode.html">ReferenceNode</a></span> </h3>
					<div class="description">
						<p>Similar to <a href="ReferenceNode.html#reference">ReferenceNode#reference</a>, an additional
property references to the current node.</p>
						<p>Default is <code>null</code>.</p>
					</div>
				</div>
				<h2 class="subsection-title">Methods</h2>
					<h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">()</span><span class="type-signature"> : string</span> </h3>
					<div class="method">
						<div class="description">
							<p>This method is overwritten since the node type is inferred from
the uniform type of the reference node.</p>
						</div>
						<dl class="details">
							<dt class="tag-overrides"><strong>Overrides:</strong> <a href="ArrayElementNode.html#getNodeType">ArrayElementNode#getNodeType</a></dt>
						</dl>
						<dl class="details">
							<dt class="tag-returns"><strong>Returns:</strong> The node type.</dt>
						</dl>
					</div>
					<h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">()</span><span class="type-signature"> : string</span> </h3>
					<div class="method">
						<div class="description">
							<p>This method is overwritten since the node type is inferred from
the uniform type of the reference node.</p>
						</div>
						<dl class="details">
							<dt class="tag-overrides"><strong>Overrides:</strong> <a href="ArrayElementNode.html#getNodeType">ArrayElementNode#getNodeType</a></dt>
						</dl>
						<dl class="details">
							<dt class="tag-returns"><strong>Returns:</strong> The node type.</dt>
						</dl>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/ReferenceBaseNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/ReferenceBaseNode.js</a>
				</p>
			</article>
		</section>
		<section>
			<header>
				<div class="class-description"><p>This class is only relevant if the referenced property is array-like.
In this case, <code>ReferenceElementNode</code> allows to refer to a specific
element inside the data structure via an index.</p></div>
			</header>
			<article>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="ReferenceElementNode" translate="no">new <a href="#ReferenceElementNode">ReferenceElementNode</a><span class="signature">( referenceNode : <span class="param-type"><a href="ReferenceNode.html">ReferenceNode</a></span>, indexNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Constructs a new reference element node.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>referenceNode</strong>
									</td>
									<td class="description last">
										<p>The reference node.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>indexNode</strong>
									</td>
									<td class="description last">
										<p>The index node that defines the element access.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<h2 class="subsection-title">Properties</h2>
				<div class="member">
					<h3 class="name" id="isReferenceElementNode" translate="no">.<a href="#isReferenceElementNode">isReferenceElementNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
					<div class="description">
						<p>This flag can be used for type testing.</p>
						<p>Default is <code>true</code>.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="isReferenceElementNode" translate="no">.<a href="#isReferenceElementNode">isReferenceElementNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
					<div class="description">
						<p>This flag can be used for type testing.</p>
						<p>Default is <code>true</code>.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="referenceNode" translate="no">.<a href="#referenceNode">referenceNode</a><span class="type-signature"> : <a href="ReferenceBaseNode.html">ReferenceBaseNode</a></span> </h3>
					<div class="description">
						<p>Similar to <a href="ReferenceBaseNode.html#reference">ReferenceBaseNode#reference</a>, an additional
property references to the current node.</p>
						<p>Default is <code>null</code>.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="referenceNode" translate="no">.<a href="#referenceNode">referenceNode</a><span class="type-signature"> : <a href="ReferenceNode.html">ReferenceNode</a></span> </h3>
					<div class="description">
						<p>Similar to <a href="ReferenceNode.html#reference">ReferenceNode#reference</a>, an additional
property references to the current node.</p>
						<p>Default is <code>null</code>.</p>
					</div>
				</div>
				<h2 class="subsection-title">Methods</h2>
					<h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">()</span><span class="type-signature"> : string</span> </h3>
					<div class="method">
						<div class="description">
							<p>This method is overwritten since the node type is inferred from
the uniform type of the reference node.</p>
						</div>
						<dl class="details">
							<dt class="tag-overrides"><strong>Overrides:</strong> <a href="ArrayElementNode.html#getNodeType">ArrayElementNode#getNodeType</a></dt>
						</dl>
						<dl class="details">
							<dt class="tag-returns"><strong>Returns:</strong> The node type.</dt>
						</dl>
					</div>
					<h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">()</span><span class="type-signature"> : string</span> </h3>
					<div class="method">
						<div class="description">
							<p>This method is overwritten since the node type is inferred from
the uniform type of the reference node.</p>
						</div>
						<dl class="details">
							<dt class="tag-overrides"><strong>Overrides:</strong> <a href="ArrayElementNode.html#getNodeType">ArrayElementNode#getNodeType</a></dt>
						</dl>
						<dl class="details">
							<dt class="tag-returns"><strong>Returns:</strong> The node type.</dt>
						</dl>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/ReferenceNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/ReferenceNode.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>